package tests.fakes;

import java.util.List;

import jeconbond.economic.agent.IEconomicAgent;
import jeconbond.economic.systems.market.IMarketResourceRedestributionSystem;
import jeconbond.economic.systems.market.ISellProposition;

public class ReRegistePropositionsAgent implements IEconomicAgent {
	private List<ISellProposition> props;
	private IMarketResourceRedestributionSystem mrrs;

	public ReRegistePropositionsAgent(
			List<ISellProposition> props,
			IMarketResourceRedestributionSystem mrrs
	) {
		this.props = props;
		this.mrrs = mrrs;
	}

	@Override
	public void processPostProduceStage() {
		for (ISellProposition sp : props) {
			mrrs.registerProposition(sp);
		}
	}

	@Override
	public void processPreProduceStage() {
	}

	@Override
	public void processProduceStage() {
	}
}
